package com.gxy.learn.design.principle.demeter_rule_principle;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * @description: 经纪人
 * @author: gaoxueyong
 * @Date: 2022/11/6 15:19
 */
@NoArgsConstructor
@AllArgsConstructor
@Slf4j
public class Agent {
    private Star star;
    private Fans fans;
    private Company company;

    public Star getStar() {
        return star;
    }

    public Fans getFans() {
        return fans;
    }

    public Company getCompany() {
        return company;
    }

    /**
     * 粉丝见面会
     *
     * @return void
     * @Author gaoxueyong
     * @Date 3:28 下午 2022/11/6
     * @Param []
     **/
    public void meeting() {
        log.info("{}和粉丝{}见面了", star.getName(), fans.getName());
    }

    /**
     * 明星和经纪公司洽谈
     *
     * @return void
     * @Author gaoxueyong
     * @Date 3:28 下午 2022/11/6
     * @Param []
     **/
    public void business() {
        log.info("{}和{}洽谈", star.getName(), company.getName());
    }
}
